package cloud.shyidong.tenant.entity;

import cloud.shyidong.core.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 租户订单实体
 * </p>
 *
 * @author syd
 * @since 2023-09-19 11:53:35
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tenant_order")
public class TenantOrderEntity implements BaseEntity {
    
    private static final long serialVersionUID = 1L;
    
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 租户ID
     */
    private Long tenantId;
    
    /**
     * 订单编号
     */
    private String orderNo;
    
    /**
     * 订单金额(单位：分)
     */
    private BigDecimal money;
    
    /**
     * 实付金额(分)
     */
    private BigDecimal payMoney;
    
    /**
     * 微信支付URL
     */
    private String codeUrl;
    
    /**
     * 支付时间
     */
    private Date payTime;
    
    /**
     *
     */
    private Integer status;
    
    /**
     *
     */
    private Integer sortIndex;
    
    /**
     *
     */
    private Long createUser;
    
    /**
     *
     */
    private Date createTime;
    
    /**
     *
     */
    private Long updateUser;
    
    /**
     *
     */
    private Date updateTime;
    
    /**
     *
     */
    @TableLogic
    private Integer deleted;
    
    /**
     *
     */
    private String remark;
    
    
}
